const mongoose = require("mongoose");
const { Schema, model } = mongoose;
const FiltersSchema = new Schema({
  value: {
    type: String,
    required: true,
  },
  id: {
    type: String,
    required: true,
  },
  pid: {
    type: String,
    required: true,
  },
  name: {
    type: String,
    required: true,
  },
  createAt: {
    type: Date,
    default: Date.now,
  },
  updateAt: {
    type: Date,
    default: Date.now,
  },
});

module.exports = model("_Filters", FiltersSchema, "filters");
